package com.mall.dubbo.api;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.mall.model.domain.UmsMenu;
import com.mall.model.domain.UmsRole;

import java.util.List;

/**
 * @author xyiaao
 * @description 针对表【ums_role(后台用户角色表)】的数据库操作Api
 * @createDate 2022-03-29 19:46:09
 */
public interface UmsRoleApi extends IService<UmsRole> {

    UmsRole findUmsRoleByUmsAdminId(Long umsAdminId);


    Page<UmsRole> findByName(String keyword, Integer pageNum, Integer pageSize);

    void createRole(UmsRole role);


    void delete(List<Long> ids);

    List<UmsRole> listAll();


    List<UmsMenu> listMenu(List<Long> menuIds);

    void updateRole(Integer id, UmsRole role);

    void deleteByRoleId(Integer roleId);

}
